import Base from "./base";

class Rating extends Base{

  async getServiceRatingList(serviceId){
    
    if(!service.hasMoreData){
      return this.data
    }


    const serviceList = await Http.request({url:'v1/rating/service',
      data:{page:this.page,count:this.count,service_id:serviceId}})
    
      this.data = this.data.concat(serviceList.data)
      // 是否有更多数据
      this.hasMoreData = !(this.page === serviceList.last_page)
      this.page ++


    return this.data 
  }



}

export default Rating